#ifndef MYFORM_H
#define MYFORM_H

#include <QWidget>
#include<QPropertyAnimation>

namespace Ui {
class myForm;
}

class myForm : public QWidget
{
    Q_OBJECT

public:
    explicit myForm(QWidget *parent = nullptr);
    ~myForm();

    void setIconAndText(const QString& myIcon,const QString& content,int pageId);
    int getPageId();
    void clearBackground();
    void InitUI();
    void showAnimal(bool isShow);
protected:
    void mousePressEvent(QMouseEvent *event);

signals:
    void myClick(int pageId);
private:
    Ui::myForm *ui;
    int pageId;
    QPropertyAnimation* animation1;
    QPropertyAnimation* animation2;
    QPropertyAnimation* animation3;
    QPropertyAnimation* animation4;
};

#endif // MYFORM_H
